<?php
class catalogMod extends commonMod
{
	/**
	 * @var mysqlPdo
	 */
	private $db;
	private $table;
	
	function __construct()
	{
		$this->db=wsModel::getInstance();
		$this->table='catalog';
	}
	
	public function addCatalog($menuId,$contentId)
	{
		if(is_numeric($menuId) && is_numeric($contentId))
		{
			return $this->db->insertData($this->table,array('menuId'=>$menuId,'contentId'=>$contentId));
		}
		return FALSE;
	}
}